<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/bootstrap-3.3.7/dist/css/bootstrap.css">
    <link rel="stylesheet" href="/css/essay-content.css">
    <script type="text/javascript" src="/js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="/bootstrap-3.3.7/dist/js/bootstrap.js"></script>
    <script src="bower_components/moment/moment.js"></script>
    <title>新闻网</title>
</head>
<nav class="navbar navbar-default">
    <div class="contain-fluid">
        <div class="navbar-header">
            <button type="button" data-toggle="collapse" data-target=".navbar-collapse" class="navbar-toggle">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            <h1><a href="/">新闻网</a></h1>
            
        </div>
        <div class="navbar-collapse collapse">
             {{#if isAuth}}
            <ul class="nav navbar-nav navbar-right">
                <li><a class="list-one" href="/logout">注销</a></li>
                <li><a class="list-one" href="/editor">投稿</a></li>
            </ul>
            {{/if}}
            {{#unless isAuth}}
            <ul class="nav navbar-nav navbar-right">
                <li><a class="list-one" href="/login">登录</a></li>
                <li><a class="list-one" href="/editor">投稿</a></li>
            </ul>
            {{/unless}}
        </div>
    </div>
</nav>
<body>
{{{body}}}
</body>
</html>